﻿import request from '/@/utils/request';
enum Api {
  AddMcProject = '/api/mcProject/add',
  DeleteMcProject = '/api/mcProject/delete',
  UpdateMcProject = '/api/mcProject/update',
  PageMcProject = '/api/mcProject/page',
  DetailMcProject = '/api/mcProject/detail',
}

// 增加项目
export const addMcProject = (params?: any) =>
	request({
		url: Api.AddMcProject,
		method: 'post',
		data: params,
	});

// 删除项目
export const deleteMcProject = (params?: any) => 
	request({
		url: Api.DeleteMcProject,
		method: 'post',
		data: params,
	});

// 编辑项目
export const updateMcProject = (params?: any) => 
	request({
		url: Api.UpdateMcProject,
		method: 'post',
		data: params,
	});

// 分页查询项目
export const pageMcProject = (params?: any) => 
	request({
		url: Api.PageMcProject,
		method: 'post',
		data: params,
	});

// 详情项目
export const detailMcProject = (id: any) => 
	request({
		url: Api.DetailMcProject,
		method: 'get',
		data: { id },
	});




